# snm/interfacing/src makefile
# See gnu webpage for documentation
# http://www.gnu.org/software/make/manual/make.html

CC=gcc
CFLAGS = -Wall -Werror $(INCLUDES)
LDFLAGS = -lm -lc -lgcc
COMMON = ./
INCLUDES = -I$(COMMON) -I../api
VPATH = $(COMMON):
SOURCES = tps62410.c 
OBJECTS = $(SOURCES:.c=.o)

########################################################

all : $(OBJECTS)
	
clean :
	@echo Removing object files
	rm *.o

########################################################
# Turn all source files into object files
%.o:%.c
	@echo Compiling $^...
	$(CC) $(CFLAGS) $^ -o $@
